<?php

/*
 * This file is part of the Geek-Zoo Projects.
 *
 * @copyright (c) 2010 Geek-Zoo Projects More info http://www.geek-zoo.com
 * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License
 * @author xuanyan <xuanyan@geek-zoo.com>
 *
 */


require_once ROOT_PATH.'/Abstract/front_abstract.php';

class Action extends front_abstract
{
    function index()
    {
        $exit = array();
        $right = array();
        $left = array();
        
        if(!$aid = _POST('id')){
            exit(0);
        }
        $cc = $this->api->getUserInfo($tto['oauth_token'], $tto['oauth_token_secret']);
        $right['id'] = $aid;
        $right['screen'] = $cc['screen'];
        $racc = _model('user')->read(array('account_id'->$aid));
        exit($racc['accounts']);
        /*acced 传递
        $lfet = _POST('acced');
        
        //exit(_POST('id'));
        if(!$aid = _POST('id')){
            exit(0);
        }
        $cc = $this->api->getUserInfo($tto['oauth_token'], $tto['oauth_token_secret']);
        $right['id'] = $aid;
        $right['screen'] = $cc['screen'];
        
        $racc = _model('user')->read(array('account_id'->$aid));
        if(!$racc['accounts']){
            foreach($left as $key => $val){
                $lfet[$key]['ed'] = 0;
            }
            $exit['left'] = $left;
            $exit['right'] = $right;
            exit($exit);
        }
        $explode = explode(',', $racc['accounts']);
        foreach($left as $key => $val){
            if(in_array($val, $explode))
                $left[$key]['ed'] = 1;
            else
                $left[$key]['ed'] = 0;
        }
        $exit['left'] = $left;
        $exit['right'] = $right;
        exit($exit);
        */
        
    }
    
}